import request from '@/utils/request'

// 编辑详情
export function getFindById(id) {
  return request.get('/checkStorage/findById/' + id)
}

// 详情
export function getDetail(id) {
  return request.get('/checkStorage/detail/' + id)
}

// 盘点配件详情列表
export function checkPartsPage(form, pageSize, currentPage) {
  return request.post('/checkStorage/checkPartsPage', {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  })
}

// 删除
export function deleteById(id) {
  return request.delete('/checkStorage/del/' + id)
}

// 生成盘点单编号
export function getAllotCode() {
  return request.get('/checkStorage/getCheckCode')
}

//新增 
export function add(form) {
  return request.post('/checkStorage/save', form)
}

//修改
export function update(form) {
  return request.put('/checkStorage/save', form)
}

//获取分页数据 
export function page(form, pageSize, currentPage) {
  return request.post('/checkStorage/page', {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  })
}


